package com.inspur.ourhis_afterend.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.inspur.ourhis_afterend.Entity.Dept;
import com.inspur.ourhis_afterend.Tools.PageAction;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DeptService {
    IPage<Dept> findAll(PageAction pageAction) throws Exception;

    List<Dept> search(String departId, String name) throws Exception;

    void add(Dept dept) throws Exception;

    int del(String departId) throws Exception;

    int edit(Dept dept) throws Exception;
}
